/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 淘助跑
 */

// 登录
export const getLogin = "http://www.dk6600.com/wap/Login.aspx"
// 获取账号
export const getAccountList = "http://www.dk6600.com/wap/TaskList.aspx"
// 接单 
export const getAccept = "http://www.dk6600.com/wap/tasklist.aspx"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers || {},
        dataType: param.dataType || 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}
